<form class="form-horizontal form-validate form-modal" method="post" action="{:url('info')}">
    <div class="modal-dialog">
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal">&times;</button>
                <h4 class="modal-title">{$row['level_id']>0?'编辑':'添加'}等级</h4>
            </div>
            <div class="modal-body">
            			
        		<div class="form-group">
                    <label class="col-sm-2 control-label"> 等级名称：</label>
                    <div class="col-sm-6">
                        <input type="text" class="input-large" data-rule-maxlength="20" data-rule-required="true" name="level_name" value="{$row.level_name}" ><span class="maroon">*</span>
                    </div>
                </div>
                    
            </div>
            <div class="modal-footer">
                <input  type="hidden" name="level_id" value="{$row.level_id|intval}"/>
                <button type="submit" class="btn btn-primary" data-loading-text="保存中..." disabled>保存</button>
                <button type="button" class="btn btn-default" data-dismiss="modal">取消</button>
            </div>
        </div>
    </div>
</form>